Add the `scroll-command' property.
authorJuri Linkov <juri@jurta.org>
Thu, 15 Apr 2010 23:51:12 +0000 (02:51 +0300)
committerJuri Linkov <juri@jurta.org>
Thu, 15 Apr 2010 23:51:12 +0000 (02:51 +0300)
commit5a4e70b31e9677199973f947b436600f0e979324
treed69e71b25e935308faa27215f894126fd6f995ff
parentb01f496a964e0b26c4c3df2ce8c41d41803ab441
Add the `scroll-command' property.

* window.c: Add Qscroll_command.
Remove Vscroll_preserve_screen_position_commands.
(window_scroll_pixel_based, window_scroll_line_based): Check the
`scroll-command' property on the last command instead of searching
the last command in Vscroll_preserve_screen_position_commands.
(syms_of_window): Initialize and staticpro `Qscroll_command'.
Put Qscroll_command property on Qscroll_up and Qscroll_down.
(scroll-preserve-screen-position): Doc fix.
(Vscroll_preserve_screen_position_commands): Remove variable.

* simple.el (scroll-up-command, scroll-down-command)
(scroll-up-line, scroll-down-line): Put `scroll-command'
property on the these symbols.  Remove them from
`scroll-preserve-screen-position-commands'.

* mwheel.el (mwheel-scroll): Put `scroll-command' and
`isearch-scroll' properties on the `mwheel-scroll' symbol.
Remove it from `scroll-preserve-screen-position-commands'.

* isearch.el (isearch-allow-scroll): Doc fix.
etc/NEWS
lisp/ChangeLog
lisp/isearch.el
lisp/mwheel.el
lisp/simple.el
src/ChangeLog
src/window.c